home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.0 / stk-3 / blt-for-STk-3.0 / blt-1.9 / src / blt.h next >
Encoding:
C/C++ Source or Header  |  1995-12-26  |  3.3 KB  |  123 lines

  1. /*
  2.  * blt.h --
  3.  *
  4.  * Copyright 1993-1994 by AT&T Bell Laboratories.
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that the copyright notice and warranty
  9.  * disclaimer appear in supporting documentation, and that the
  10.  * names of AT&T Bell Laboratories any of their entities not be used
  11.  * in advertising or publicity pertaining to distribution of the
  12.  * software without specific, written prior permission.
  13.  *
  14.  * AT&T disclaims all warranties with regard to this software, including
  15.  * all implied warranties of merchantability and fitness.  In no event
  16.  * shall AT&T be liable for any special, indirect or consequential
  17.  * damages or any damages whatsoever resulting from loss of use, data
  18.  * or profits, whether in an action of contract, negligence or other
  19.  * tortuous action, arising out of or in connection with the use or
  20.  * performance of this software.
  21.  *
  22.  */
  23.  
  24. #ifndef _BLT_H
  25. #define _BLT_H
  26.  
  27. #include "bltConfig.h"
  28.  
  29. #include <tcl.h>
  30. #include <tk.h>
  31. #include <stdio.h>
  32.  
  33. #ifdef HAVE_STDLIB_H
  34. #include <stdlib.h>
  35. #endif /* HAVE_STDLIB_H */
  36.  
  37. #ifdef HAVE_STRING_H
  38. #include <string.h>
  39. #endif /* HAVE_STRING_H */
  40.  
  41. #ifdef HAVE_ERRNO_H
  42. #include <errno.h>
  43. #endif /* HAVE_ERRNO_H */
  44.  
  45. #ifdef HAVE_MEMORY_H
  46. #include <memory.h>
  47. #endif /* HAVE_MEMORY_H */
  48.  
  49. #ifdef HAVE_UNISTD_H
  50. #include <unistd.h>
  51. #endif /* HAVE_UNISTD_H */
  52.  
  53. #ifdef HAVE_MALLOC_H
  54. #include <malloc.h>
  55. #endif /* HAVE_MALLOC_H */
  56.  
  57. #include "bltList.h"
  58.  
  59. #ifdef hpux
  60. #define BLACK        "black"
  61. #define WHITE        "white"
  62. #define BG1        "white"
  63. #define BG2        "lightgrey"
  64. #define BG3         "grey"
  65. #define ANTIQUEWHITE1   "antiquewhite1"
  66. #define GRAY        "grey"
  67. #else
  68. #define BLACK        "#000000"
  69. #define WHITE        "#ffffff"
  70. #define BG1             "#ffffff"
  71. #define BG2             "#d9d9d9"
  72. #define BG3             "#828282"
  73. #define ANTIQUEWHITE1    "#ffefdb"
  74. #define GRAY        "#b0b0b0"
  75. #endif
  76.  
  77. /*
  78.  * ----------------------------------------------------------------------
  79.  *
  80.  *     X11/Xosdefs.h requires XNOSTDHDRS be set for some systems.
  81.  *    This is a guess.  If I can't find STDC headers or unistd.h,
  82.  *    assume that this is non-POSIX and non-STDC environment.
  83.  *    (needed for Encore Umax 3.4 ?)
  84.  *
  85.  * ----------------------------------------------------------------------
  86.  */
  87. #if !defined(STDC_HEADERS) && !defined(HAVE_UNISTD_H)
  88. #define XNOSTDHDRS     1
  89. #endif
  90.  
  91. /*
  92.  * ----------------------------------------------------------------------
  93.  *
  94.  *     The TCL_DYNAMIC macro requires "free" to be declared.
  95.  *    Assume we need one if there's no stdlib.h or malloc.h
  96.  *
  97.  * ----------------------------------------------------------------------
  98.  */
  99. #if !defined(HAVE_STDLIB_H) && !defined(HAVE_MALLOC_H)
  100. extern void free _ANSI_ARGS_((void *));
  101. #endif
  102.  
  103. /*
  104.  * ----------------------------------------------------------------------
  105.  *
  106.  *    If strerror isn't in the C library (we'll get it from
  107.  *    libtcl.a) that we also need a forward declaration.
  108.  *
  109.  * ----------------------------------------------------------------------
  110.  */
  111. #ifndef HAVE_STRERROR
  112. extern char *strerror _ANSI_ARGS_((int));
  113. #endif
  114. #ifndef HAVE_STRDUP
  115. extern char *strdup _ANSI_ARGS_((CONST char *s));
  116. #endif
  117.  
  118. /* Forward declarations */
  119.  
  120. extern int Blt_FindCmd _ANSI_ARGS_((Tcl_Interp *, char *, ClientData *));
  121.  
  122. #endif /*_BLT_H*/
  123.